<?
include "server_config.php";

$content = $_POST['new_talk'];

if(trim($content) =="")
{
	echo "내용을 입력해 주세요.";
	return;
}
if($user_idx=="")
{
	echo "권한이 없습니다.";
	return;
}

	//새 talk 입력
	$sql="
		INSERT INTO nddg_talk (user_id, content) VALUE ( $user_idx, '$content');
	";
	$result = mysql_query($sql,$connect);	

?>
1